package net.alan.common.constants;

/**
 * 组日志类行
 * Author 李岩飞
 * Email eliyanfei@126.com
 * 2017/11/22
 */
public enum EProjectLogType {
    common("一般操作"),
    taskcommon("一般操作"),
    userAdd("加入组员"),
    taskAdd("创建任务"),
    taskEnd("关闭任务"),
    taskDelete("删除任务"),
    taskEdit("修改任务"),
    taskReOpen("重新打开任务"),
    uploadattach("上传附件"),
    delattach("删除附件"),
    taskAddComment("发表评论"),
    taskDeleteComment("删除评论"),
    priority("调整优先级"),
    date("调整截至日期"),
    user("调整指派用户"),
    projectAdd("新建项目"),
    delcomment("删除评论");

    private String name;

    private EProjectLogType(String name) {
        this.name = name;
    }

    public static String getName(String name) {
        for (EProjectLogType c : EProjectLogType.values()) {
            if (c.getName().equals(name)) {
                return c.name;
            }
        }
        return null;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

}
